var path = require('path')
var check = require('../src/index')

const threshold = 2    // 当前图片与压缩后大小比例如果超过该阈值，则报错提示
var input = 'E:/02Project/02Work/00Now_Work/jinhui/20160811-jinhui/jinhui-october/frontend-video-vote/src/assets/images'
var output = path.join(input, '../min/')

check(input, output, {
  threshold: threshold
}).then((res) => {
  console.log(res)
})
